package com.example.news.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * @TableName role
 */
@TableName(value ="role")
@Data
public class Role implements Serializable {
    @TableId
    private Integer id;

    private String name;

    private String code;

    private Integer sort;

    private Integer status;
    @TableLogic
    private Integer deleted;
    @TableField(fill = FieldFill.INSERT) //创建时自动填充
    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;
}